html button click url

42

button as href -

<button onclick="location.href='http://www.example.com'" type="button">
         www.example.com</button>

button href -

a.button {
    -webkit-appearance: button;
    -moz-appearance: button;
    appearance: button;

    text-decoration: none;
    color: initial;
}

Comments

Submit
0 Comments